package cn.tedu.fei;

public class ZhangFei {

    private String name="张翼德";
    private SnakeLance snakeLance;

    public void fight(){
        System.out.println(name+"使用"+snakeLance.getName()+"战斗");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SnakeLance getSnakeLance() {
        return snakeLance;
    }

    public void setSnakeLance(SnakeLance snakeLance) {
        this.snakeLance = snakeLance;
    }
}
